<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>浮动简介</title>
    <!--
我们经常用浮动去做布局,但是早期设计浮动的作用是做文字环绕图片的效果
先说文字环绕
-->
    <style>
        div {
            width: 600px;
            height: 400px;
            background-color: skyblue;
            word-break: break-word;
            /*word-break:break-all;*/

        }

        img {
            width: 200px;
            float: left; /*会使元素向左或向右移动，其周围的元素也会重新排列: img 元素在左边,其他元素在周围环绕*/

        }
    </style>
</head>
<div>
    <img src="../../resource/img/img01.png" alt="">
    wqihdjasncaspldoqwidoasmkjskadjkasncmlasnfbdsjofhioqwejfisenfksdlhaiofhekfndklopopwmxjsaojdklasmndkasiwehrfjkahsjfhdjahskfheuawhwqihdjasncaspldoqwidoasmkjskadjkasncmlasnfbdsjofhioqwejfisenfksdlhaiofhekfndklopopwmxjsaojdklasmndkasiwehrfjkahsjfhdjahskfheuawhqihdjasncaspldoqwidoasmkjskadjkasncmlasnfbdsjofhioqwejfisenfksdlhaiofhekfndklopopwmxjsaojdklasmndkasiwehrfjkahsjfhdjahskfheuawhkadjkasncmlasnfbdsjofhioqwejfisenfksdlhaiofhekfndklopopwmxjsaojdklasmndkasiwehrfjkahsjfhdjahskfheuawh
    wqihdjasncaspldoqwidoasmkjskadjkasncmlasnfbdsjofhioqwejfisenfksdlhaiofhekfndklopopwmxjsaojdklasmndkasiwehrfjkahsjfhdjahskfheuawhdklasmndkasiwehrfjkahsjfhdjahskfheuawh
    wqihdjasncaspldoqwidoasmkjskadjkasncmlasnfbdsjofhioqwejfisenfksdlhaiofhekfnncaspldoqwidoasmkjskadjkasncmlasnfbdsjofhioqwejfisenfksdlhaiofhekfndklopopwmxjsaojdklasmndkasiwehrfjkahsjfhdjahskfheuawh
</div>
<body>


</body>
</html>